﻿@{
    ViewBag.Title = "PDA功能管理";
    int pageIndex = TempData["pageIndex"] == null ? 1 : (int)TempData["pageIndex"];
    Searcher searcher = TempData["searcher"] as Searcher;
}
@Styles.Render("~/Content/list")
<style type="text/css">
    #divSearch
    {
        width: 75%;
        float: left;
    }
    #divSearch input
    {
        width: 100px;
    }
</style>
<div id="adsearch">
    @using (Ajax.BeginForm("FunctionGrid", new { r = new Random().NextDouble() }, new AjaxOptions { UpdateTargetId = "gridview", LoadingElementId = "loading" })) {
            <table class="searchbar">
                <tr>
                    <th>
                        功能编号:
                    </th>
                    <td>
                        @Html.TextBox("ad.FunctionNo")
                    </td>
                    <th>
                        功能名称:
                    </th>
                    <td>
                        @Html.TextBox("ad.FunctionName")
                    </td>
                </tr>
            </table>
        <p>
            <input class="button" type="submit" name="submit" value="查询" />
        </p>
    }
</div>
<div id="loading" class="loading">
    <img src="@Url.Content("~/Images/icon-loader.gif")" alt="Searching" />
</div>
<div id="gridview">
    @{ Html.RenderAction("FunctionGrid", new { pageIndex = pageIndex, searcher = searcher });}
</div>
@section scripts{
    @if (false) {
        <script src="../../Scripts/jquery-1.7.1-vsdoc.js" type="text/javascript"></script>
    }
    @Scripts.Render("~/bundles/form")
}
